package com.yisen.singleton;

public class Mgr02 {
    private static final Mgr02 INSTANCE;

    /**
     * 实例化代码写在静态代码块中
     */
    static {
        INSTANCE = new Mgr02();
    }
    private Mgr02(){}
    public static Mgr02 getInstance(){
        return INSTANCE;
    }
}
